package com.lovo.ssc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 客户表
 * </p>
 *
 * @author lovo
 * @since 2022-07-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class Customer extends Model {

    private static final long serialVersionUID = 1L;

    @TableId(value = "customerId", type = IdType.AUTO)
    private Integer customerid;

    @ApiModelProperty(value = "客户编号")
    private String code;

    @TableField("realName")
    @ApiModelProperty(value = "真实姓名")
    private String realname;

    @TableField("userName")
    @ApiModelProperty(value = "客户名")
    private String username;

    /**
     * 0-男 1-女
     */
    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "客户电话")
    private String phone;

    @ApiModelProperty(value = "资质图片")
    private String image;

    @TableField("sfzImg")
    @ApiModelProperty(value = "身份证图片")
    private String sfzimg;

    @TableField("companyName")
    @ApiModelProperty(value = "公司名称")
    private String companyname;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "等级")
    private String grade;


}
